"""SAD URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from .views import *
from apscheduler.schedulers.blocking import BlockingScheduler
from django.urls import re_path

urlpatterns = [
    path('', index),
    path('index', index, name="index"),
    path('login', login, name="login"),
    # path('profile', profile, name="profile"),
    path('warehouse', warehouse, name="warehouse"),
    path('notification', notification, name="notification"),
    path('expired', expired, name="expired"),
    path('add_goods', add_goods, name="add_goods"),
    path('view_warehouse', view_warehouse, name="view_warehouse"),
    path('register', register, name="register"),
    path('real_time_location', real_time_location, name="real_time_location"),
    path('vehicle_get', get_data, name="vehicle_get"),
    path('sales_order', sales_order, name='sales_order'),
    path('sales_order_info/<str:id>/', sales_order_info, name='sales_order_info'),
    path('invoice_info', invoice_info, name='invoice_info'),
    path('avai_trucks_info', avai_trucks_info, name='avai_trucks_info'),
    path('driver_info/<str:id>/', driver_info, name='driver_info'),
    path('service_info', service_info, name='service_info'),
    path('scrap_info', scrap_info, name='scrap_info'),
    path('purchase_info', purchase_info, name='purchase_info'),
    path('purchase_detail_info/<str:id>/', purchase_detail_info, name='purchase_detail_info'),
    path('add_demand', add_demand, name="add_demand"),
    path('demand2purchase/<str:id>/', demand2purchase, name="demand2purchase"),
    path('final_demandlist/<str:id>/', final_demandlist, name="final_demandlist"),
    path('truck_status/<str:id>/', truck_status, name="truck_status"),
    path('get_occupation', get_occupation, name='get_occupation'),
    path('schedule_manage', schedule_manage, name='schedule_manage'),
    path('service_process/<str:id>/', service_process, name='service_process'),
    path('scrappe_pro/<str:id>/', scrappe_pro, name='scrappe_pro'),
    path('truck_demands', truck_demands, name='truck_demands'),
    path('truck_asset_manage', truck_asset_manage, name='truck_asset_manage'),
    path('exception_handle_info', exception_handle_info, name='exception_handle_info'),
    path('exception_handle_process/<str:id>/', exception_handle_process, name='exception_handle_process'),
    path('milk_src_view', milk_src_view, name='milk_src_view')
]
